home *** CD-ROM | disk | FTP | other *** search
- <refentry id="libgimp-gimpplugin" revision="19 Jan 2001">
- <refmeta>
- <refentrytitle>gimpplugin</refentrytitle>
- <manvolnum>3</manvolnum>
- <refmiscinfo>LIBGIMP Library</refmiscinfo>
- </refmeta>
-
- <refnamediv>
- <refname>gimpplugin</refname><refpurpose></refpurpose>
- </refnamediv>
-
- <refsynopsisdiv><title>Synopsis</title>
- <synopsis>
-
-
-
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-progress-init">gimp_progress_init</link> (<link linkend="gchar">gchar</link> *message);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-progress-update">gimp_progress_update</link> (<link linkend="gdouble">gdouble</link> percentage);
- <link linkend="gchar">gchar</link>* <link linkend="gimp-temp-PDB-name">gimp_temp_PDB_name</link> (void);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-plugin-domain-register">gimp_plugin_domain_register</link> (<link linkend="gchar">gchar</link> *domain_name,
- <link linkend="gchar">gchar</link> *domain_path);
- <link linkend="gboolean">gboolean</link> <link linkend="gimp-plugin-help-register">gimp_plugin_help_register</link> (<link linkend="gchar">gchar</link> *help_path);
- </synopsis>
- </refsynopsisdiv>
-
-
-
-
-
- <refsect1>
- <title>Description</title>
- <para>
-
- </para>
- </refsect1>
-
- <refsect1>
- <title>Details</title>
- <refsect2>
- <title><anchor id="gimp-progress-init">gimp_progress_init ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_progress_init (<link linkend="gchar">gchar</link> *message);</programlisting>
- <para>
- Initializes the progress bar for the current plug-in.
- </para>
- <para>
- Initializes the progress bar for the current plug-in. It is only
- valid to call this procedure from a plug-in.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>message</parameter> :</entry>
- <entry> Message to use in the progress dialog.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-progress-update">gimp_progress_update ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_progress_update (<link linkend="gdouble">gdouble</link> percentage);</programlisting>
- <para>
- Updates the progress bar for the current plug-in.
- </para>
- <para>
- Updates the progress bar for the current plug-in. It is only valid
- to call this procedure from a plug-in.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>percentage</parameter> :</entry>
- <entry> Percentage of progress completed.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-temp-PDB-name">gimp_temp_PDB_name ()</title>
- <programlisting><link linkend="gchar">gchar</link>* gimp_temp_PDB_name (void);</programlisting>
- <para>
- Generates a unique temporary PDB name.
- </para>
- <para>
- This procedure generates a temporary PDB entry name that is
- guaranteed to be unique. It is many used by the interactive popup
- dialogs to generate a PDB entry name.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> A unique temporary name for a temporary PDB entry.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-plugin-domain-register">gimp_plugin_domain_register ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_plugin_domain_register (<link linkend="gchar">gchar</link> *domain_name,
- <link linkend="gchar">gchar</link> *domain_path);</programlisting>
- <para>
- Registers a textdomain for localisation.
- </para>
- <para>
- This procedure adds a textdomain to the list of domains Gimp
- searches for strings when translating its menu entries. There is no
- need to call this function for plug-ins that have their strings
- included in the gimp-std-plugins domain as that is used by default.
- If the compiled message catalog is not in the standard location, you
- may specify an absolute path to another location. This procedure can
- only be called in the query function of a plug-in and it has to be
- called before any procedure is installed.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>domain_name</parameter> :</entry>
- <entry> The name of the textdomain (must be unique).
- </entry></row>
- <row><entry align="right"><parameter>domain_path</parameter> :</entry>
- <entry> The absolute path to the compiled message catalog (may be NULL).
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
- <refsect2>
- <title><anchor id="gimp-plugin-help-register">gimp_plugin_help_register ()</title>
- <programlisting><link linkend="gboolean">gboolean</link> gimp_plugin_help_register (<link linkend="gchar">gchar</link> *help_path);</programlisting>
- <para>
- Register a help path for a plug-in.
- </para>
- <para>
- This procedure changes the help rootdir for the plug-in which calls
- it. All subsequent calls of gimp_help from this plug-in will be
- interpreted relative to this rootdir. This procedure can only be
- called in the query function of a plug-in and it has to be called
- before any procedure is installed.</para>
- <para>
-
- </para><informaltable pgwide=1 frame="none" role="params">
- <tgroup cols="2">
- <colspec colwidth="2*">
- <colspec colwidth="8*">
- <tbody>
- <row><entry align="right"><parameter>help_path</parameter> :</entry>
- <entry> The rootdir of the plug-in's help pages.
- </entry></row>
- <row><entry align="right"><emphasis>Returns</emphasis> :</entry><entry> TRUE on success.
- </entry></row>
- </tbody></tgroup></informaltable></refsect2>
-
- </refsect1>
-
-
-
-
- </refentry>
-